package org.jeecg.modules.cosmetic.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.cosmetic.entity.TToxicologicalFile;
import org.jeecg.modules.cosmetic.mapper.TToxicologicalFileMapper;
import org.jeecg.modules.cosmetic.model.dto.ToxFileDTO;
import org.jeecg.modules.cosmetic.service.ITToxicologicalFileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 毒理数据附件表 服务实现类
 * </p>
 *
 * @author lq
 * @since 2024-10-12 10:11:22
 */
@DS("cosmetic-datasource")
@Service
public class TToxicologicalFileServiceImpl extends ServiceImpl<TToxicologicalFileMapper, TToxicologicalFile> implements ITToxicologicalFileService {

    @Resource
    private TToxicologicalFileMapper toxicologicalFileMapper;

    @Override
    public List<ToxFileDTO> getToxFile(Long id) {
        return toxicologicalFileMapper.getToxFile(id);
    }
}
